<?php

namespace app\common\model\other;

use fast\Tree;
use think\Model;


class Deeply extends Model
{




    // 表名
    protected $name = 'deeply';


    public function getCreatetimeAttr($value)
    {
        $status = date('Y-m-d', $value);
        return $status;
    }

    /**
     * 读取分类列表
     * @param string $type   指定类型
     * @param string $status 指定状态
     * @return array
     */
    public static function getList()
    {

        $list=collection(self::field('id,name,phone,describe,function,createtime,image')->order(['weigh'=>'desc','createtime'=>'desc'])->select())->toArray();


        return $list;
    }

}
